fix check for duplicate qualified names in gpx namespace declarations.
authortsteven4@gmail.com <tsteven4@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 18 Mar 2014 01:05:08 +0000 (01:05 +0000)
committertsteven4@gmail.com <tsteven4@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 18 Mar 2014 01:05:08 +0000 (01:05 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4781 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/gpx.cc

index cc16df9c0a002bc96e6d2d919f4635a96f8d838d..259e90e616ba4ad1d8e6d02965693ecb8a81ca1c 100644 (file)
@@ -479,8 +479,8 @@ tag_gpx(const QXmlStreamAttributes& attr)
     QString prefix = ns[i].prefix().toString();
     QString namespaceUri = ns[i].namespaceUri().toString();
     if (!prefix.isEmpty() && (0 != prefix.compare("xsi"))) {
-      if (! gpx_namespace_attribute.hasAttribute(prefix)) {
-        gpx_namespace_attribute.append(prefix.prepend("xmlns:"), namespaceUri);
+      if (! gpx_namespace_attribute.hasAttribute(prefix.prepend("xmlns:"))) {
+        gpx_namespace_attribute.append(prefix, namespaceUri);
       }
     }
   }